package com.service.impl;

/**
 * @description: 温度检测
 * @projectName:Lambda
 * @see:com.service.impl
 * @author:LXC
 * @createTime:2024/4/15 11:41
 * @version:1.0
 */
public class HightTemp {

    private int hTemp;

    public HightTemp(int hTemp) {
        this.hTemp = hTemp;
    }

    public boolean sameTemp(HightTemp hightTemp) {
        return hTemp == hightTemp.hTemp;
    }

    public boolean lessThanTemp(HightTemp hightTemp) {
        return hTemp < hightTemp.hTemp;
    }
}
